﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using System.Web.Mvc;
using WebSite.Core;
using WebSite.Data.NH.Infrastructure;
using WebSite.Data.NH.Repositories;
using WebSite.Model;

namespace WebSite.Web.Controllers
{
    //public class HomeController : Controller
    //{
    //    private readonly IPersonRepository pr;
    //    private readonly IUnitOfWork uow;

    //    public HomeController(IPersonRepository pr,IUnitOfWork uow)
    //    {
    //        this.pr = pr;
    //        this.uow = uow;
    //    }

    //    public ActionResult Index()
    //    {
    //        var a = pr.GetAll();

           
    //        //IList<PersonInfo> list = a.Where(e => e.Id > 2).ToList();

    //        //PersonInfo pi = new PersonInfo();
    //        //pi.Name = "aa";
    //        //pi.BirthDay = DateTime.Now;
    //        //pi.Notes = "哈哈";

    //        //pr.Add(pi);

    //        //uow.Commit();
    //        return View();
    //    }

    //}
}
